<?php
my_component_load('xl_builder' , false);
my_component_load('testing' , false);
my_component_load('paging' , false);
my_component_load('rpt_tmn_hari_kerja', false);
$task =  isset($_GET['task']) ? $_GET['task']: '';
$periode_id=isset($_GET['periode_id']) ? (int) $_GET['periode_id'] : 0 ;
$modulname = "Reporting _BN_ Penggajian _BN_ Waktu Kerja _BN_ Hari Kerja";
if($task == "excel_hari_kerja"){
	header("Content-Type: application/xls");;
	header("Content-Disposition: attachment;filename=rpt_hari_kerja.xls");
	echo excel_hari_kerja($periode_id);
	exit;
}elseif($task == "print_tmn_hari_kerja"){
	include_once('components/'.$_GET['com'].'/cetak.'.$_GET['com'].'.php');
	exit;
}elseif($task == "txt_list_of_transfer"){
	@ob_end_clean(); 
	echo'<pre>';
	echo print_plain($periode_id);
	exit;
}else{
	$pagename = $modulname;
	load_facebox_script();	
	$content = list_karyawan_hari_kerja($periode_id);
}
generate_my_web($content, $pagename  );
?>